﻿using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Converts;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Linq;

namespace Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes
{
    public class GPCodedValueDomainAttribute : AbstractIDomain, IMultiDomain
    {
        public GPCodedValueDomainAttribute(params string[] items)
        {
            this.items = items.Select(c => DomainConvert.Convert(c)).ToArray();
        }

        public override DomainEnum type { get; set; } = DomainEnum.GPCodedValueDomain;

        public IDomain[] items { get; set; }

    }
}
